package com.example.medical.service;

import com.example.medical.entity.dto.*;
import com.example.medical.entity.dto.GetAffairsListActionDto;
import com.example.medical.entity.pojo.Affairs;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.medical.utils.common.result.Result;

/**
* @author 24354
* @description 针对表【affairs】的数据库操作Service
* @createDate 2024-04-11 02:18:43
*/
public interface AffairsService extends IService<Affairs> {

    Result UserGetAffairsGetSetList(GetAffairsListActionDto dto);

    Result UserGetAffairsList(GetAffairsListDto dto);

    Result UserSaveAffairs(UserSaveAffairsDto dto);

    Result AdminSaveAffairs(AdminSaveAffairsDto dto);

    Result RemoveAffairsArr(String[] ids, String memo);

    Result UserRemoveAffairs(Integer id, String memo);

    Result GetAffairsActionList(GetAffairsListActionDto dto);

    Result GetAffairsList(GetAffairsListDto dto);


    Result UserAffairsRepairTrue(Integer id);

    Result UserAffairsRepairFalse(Integer id, String memo);

    Result LeadershipAffairsRepairTrue(Integer id);

    Result LeadershipAffairsRepairFalse(Integer id, String memo);

    Result LeadershipAffairsTrue(Integer id);

    Result LeadershipAffairsFalse(Integer id, String memo);
}
